package com.cans.command;

/**
 * 电视机
 *
 * @author cans
 * @date 2022/5/8
 **/
public class Tv {

    private int sound = 0;

    /**
     * 调大音量
     */
    public synchronized void soundUp() {
        sound++;
        System.out.println("调大音量,当前音量: " + sound);
    }

    /**
     * 调小音量
     */
    public synchronized void soundDown() {
        sound--;
        System.out.println("调小音量,当前音量: " + sound);
    }
}
